<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        // 简易版深拷贝 

        function deep(obj) {
            if (typeof obj != 'object' || obj == null) return;
            var res = obj instanceof Array ? [] : {};
            for (var key in obj) {
                res[key] = (typeof obj[key] != object ||obj[key] == null) ? obj[key] : deep(obj[key])
            }
            return res
        }

        // 复杂深拷贝 考虑 date 类型  regexp 类型
        function isObject(target){
            return (typeof target==='object' || typeof target =='funtion') && obj!==null
        }
        function deppClone(obj){
            
        }
    </script>
</body>

</html>